<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class c_index extends MY_Controller {

	function __construct(){
		parent::__construct();
		checkLogin();
	}
	
	function index(){
        
        if ($_SESSION[SESSION_GROUPID] == 1){
            redirect(base_url("loket"));
        }else{
            $data_view['menu'] = $this->m_public_function->_menu();
            $data["menu"] = $this->load->view("v_menu",$data_view,true);
            $this->load->view('v_main',$data);
        }
    }

}